export default {
  namespaced: true,
  state: {
    id: 0,
    name: '',
    appId: 'default',
    appIds: [],
    groupName: '',
    groups: [],
    isAdmin: false,
    usernameToQuery: ''
  },
  mutations: {
    updateId (state, id) {
      state.id = id
    },
    updateName (state, name) {
      state.name = name
    },
    updateAppId (state, appId) {
      state.appId = appId
    },

    updateAppIds (state, appIds) {
      state.appIds = appIds
    },

    updateGroup(state, groupName) {
      state.groupName = groupName
    },

    updateGroups(state, groups) {
      state.groups = groups
    },
    updateIsAdmin(state, isAdmin) {
      state.isAdmin = isAdmin
    },
    updateUsernameToQuery(state, usernameToQuery) {
      state.usernameToQuery = usernameToQuery
    }
  }
}
